<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>Insert title here</title>
</head>
<body>
	<form action="material.do" name="MaterialForm" method="POST">
		<table width="100%" cellpadding="5" cellspacing="1" border="1">
			<tr>
				<td colspan="6" align="center"><B>MaterialForm</B></td>
			</tr>
			<tr>
				<td>Material code</td>
				<td>supplier code</td>
				<td>material name </td>
				<td>material price</td>
				<td>material quantity</td>
				<td>Availability Date</td>
			</tr>
			<c:forEach items="${col}" var="one" varStatus="status">
				<tr>
					<td colspan="1">
						<input type="checkbox" name="boxes" value="${status.index }">
						&nbsp;${one.materialCode}
						<input type="hidden" name="MaterialCode" value="${one.materialCode}">
					</td>
					<td colspan="1">&nbsp;${one.supplierCode}</td>
					<td colspan="1">&nbsp;${one.materialName}</td>
					<td colspan="1">&nbsp;${one.materialPrice}</td>
					<td colspan="1">&nbsp;${one.materialAmount}</td>
					<td colspan="1">&nbsp;${one.supplyDate}</td>
				</tr>
			</c:forEach>
		</table>
        <jsp:include page="../util/SplitAndCRUDPage.jsp"></jsp:include>
	</form>
</body>
<script type="text/javascript">
	var fm = MaterialForm;
</script>
</html>